package com.work.mb;

import java.io.Serializable;
import java.util.Date;
import java.util.logging.Logger;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import com.work.facade.TaskFacade;
import com.work.model.Sprint;
import com.work.model.User;

/**
 * The Class TaskMB.
 *
 * @author "Mihai Roman"
 */
@ManagedBean(name = "taskMB")
@SessionScoped
public class TaskMB implements Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 403401329095859126L;
	private final static Logger LOG = Logger.getLogger(TaskMB.class.getName()); 
	
	@EJB
	private TaskFacade taskFacade;
	
	private Date creationDate;
	private Date endDate;
	private Date startDate;
	private int status;
	private Date updatedDate;
	private Sprint sprintBean;
	private User userTasks;
	private User userCreatedBy;
	private User userUpdatedBy;
	
	/**
	 * @return the creationDate
	 */
	public Date getCreationDate() {
		return creationDate;
	}
	/**
	 * @param creationDate the creationDate to set
	 */
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	/**
	 * @return the endDate
	 */
	public Date getEndDate() {
		return endDate;
	}
	/**
	 * @param endDate the endDate to set
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	/**
	 * @return the startDate
	 */
	public Date getStartDate() {
		return startDate;
	}
	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}
	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}
	/**
	 * @return the updatedDate
	 */
	public Date getUpdatedDate() {
		return updatedDate;
	}
	/**
	 * @param updatedDate the updatedDate to set
	 */
	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}
	/**
	 * @return the sprintBean
	 */
	public Sprint getSprintBean() {
		return sprintBean;
	}
	/**
	 * @param sprintBean the sprintBean to set
	 */
	public void setSprintBean(Sprint sprintBean) {
		this.sprintBean = sprintBean;
	}
	/**
	 * @return the userTasks
	 */
	public User getUserTasks() {
		return userTasks;
	}
	/**
	 * @param userTasks the userTasks to set
	 */
	public void setUserTasks(User userTasks) {
		this.userTasks = userTasks;
	}
	/**
	 * @return the userCreatedBy
	 */
	public User getUserCreatedBy() {
		return userCreatedBy;
	}
	/**
	 * @param userCreatedBy the userCreatedBy to set
	 */
	public void setUserCreatedBy(User userCreatedBy) {
		this.userCreatedBy = userCreatedBy;
	}
	/**
	 * @return the userUpdatedBy
	 */
	public User getUserUpdatedBy() {
		return userUpdatedBy;
	}
	/**
	 * @param userUpdatedBy the userUpdatedBy to set
	 */
	public void setUserUpdatedBy(User userUpdatedBy) {
		this.userUpdatedBy = userUpdatedBy;
	}
	
}
